import Sortable from "sortablejs";

export default {
  mounted(el, bind) {
    let options = {
      forceFallback: false, // Element dragging ended
    };
    if (bind.value) {
      options = { ...options, ...bind.value };
    }

    Sortable.create(el, {
      ...options,
    });
  },
};
